<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input name='operationId' id='operationId' th:value="${operationId}" type="hidden">
							<input name='columnRelation' id='columnRelation' type="hidden">
							<div class="form-group">
								<label class="col-sm-2 control-label">作业名称：</label>
								<div class="col-sm-4">
									<input id="jobName" name="jobName" class="form-control"
										type="text" required="required">
								</div>
								<label class="col-sm-2 control-label">作业类型：</label>
								<div class="col-sm-4">
								   <select data-placeholder="--请选择--" name="jobType" id="jobType"
                                        class="form-control chosen-select job-type-select" tabindex="2" required>
                                        <option value="">--请选择--</option>
                                        <option value="1">系统接口</option>
                                        <option value="3">企查查接口</option>
                                        <option value="2">数据同步</option>
                                	</select>
								</div>
							</div>
							<div class="form-group" id="taskClass" hidden="hidden">
								<label class="col-sm-2 control-label">SpringBean：</label>
								<div class="col-sm-4">
									<input id="springBean" name="springBean" class="form-control"
										type="text">
								</div>
								<label class="col-sm-2 control-label">接口名：</label>
								<div class="col-sm-4">
									<input id="methodName" name="methodName" class="form-control"
										type="text">
								</div>
							</div>
							<div id="qiccClass" hidden="hidden">
								<div class="form-group" >
									<label class="col-sm-2 control-label">技术元表：</label>
									<div class="col-sm-10">
										<select data-placeholder="--选择目标表--" name="technicalTable" id="technicalTable"
		                                        class="form-control chosen-select technical-select" tabindex="2" required>
		                                </select>
									</div>
								</div>
								<div class="form-group" >
									<label class="col-sm-2 control-label">接口地址</label>
									<div class="col-sm-10">
										<input id="requestUrl" name="requestUrl" class="form-control"
											type="text">
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">执行优先级：</label>
								<div class="col-sm-4">
									<input id="priority" name="priority" class="form-control" placeholder="请输入0-100数字，默认为5"
										type="text">
								</div>
								<label class="col-sm-2 control-label">状态：</label>
								<div class="col-sm-4">
									<select data-placeholder="--选择状态--" name="status" id="status"
		                                        class="form-control chosen-select" tabindex="2" required>
		                                    <option value="0">正常</option>
		                                    <option value="-1">禁用</option>
		                                </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">任务描述：</label>
								<div class="col-sm-10">
									<textarea id="description" name="description" class="form-control"
										></textarea>
								</div>
							</div>
							<div id="dataSync" hidden="hidden">
								<div class="form-group" >
									<label class="col-sm-2 control-label">源表类型：</label>
									<div class="col-sm-4"> 
										<select data-placeholder="--选择类型--" name="sourceMetaType" id="sourceMetaType"
		                                        class="form-control chosen-select source-first-select" tabindex="2" required>
		                                    <option value="1">技术元数据</option>
		                                    <option value="2">管理元数据</option>
		                                </select>
									</div>
									<label class="col-sm-2 control-label">源表：</label>
									<div class="col-sm-4">
										<select data-placeholder="--选择源表--" name="sourceTable" id="sourceTable"
		                                        class="form-control chosen-select source-second-select" tabindex="2" required>
		                                </select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">目标表类型：</label>
									<div class="col-sm-4">
										<select data-placeholder="--选择类型--" name="targetMetaType" id="targetMetaType"
		                                        class="form-control chosen-select target-first-select" tabindex="2" required>
		                                    <option value="1">技术元数据</option>
		                                    <option value="2" selected="selected">管理元数据</option>
		                                </select>
									</div>
									<label class="col-sm-2 control-label">目标表：</label>
									<div class="col-sm-4">
										<select data-placeholder="--选择目标表--" name="targetTable" id="targetTable"
		                                        class="form-control chosen-select target-second-select" tabindex="2" required>
		                                </select>
									</div>
								</div>
								<div class="form-group" >
		                          <div class="col-sm-12 no-padding">
		                              <table  data-mobile-responsive="true" class="table table-hover table-striped">
										<thead>
											<tr>
												<th data-field="1" tabindex="0"><div class="th-inner ">序号</div><div class="fht-cell"></div></th>
												<th data-field="sourceColumnName" tabindex="0"><div class="th-inner ">源字段名</div><div class="fht-cell"></div></th>
												<th data-field="sourceColumndefault" tabindex="0"><div class="th-inner ">源字段默认值</div><div class="fht-cell"></div></th>
												<th data-field="targetColumnName" tabindex="0"><div class="th-inner ">目标字段</div><div class="fht-cell"></div></th>
												<th data-field="targetColumnComment" tabindex="0"><div class="th-inner ">目标字段备注</div><div class="fht-cell"></div></th>
											</tr>
										</thead>
										<tbody id="jobTableforSen">
										</tbody>
									 </table>
		                          </div>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-12 col-sm-offset-6">
									<button type="submit" class="btn btn-primary" id="btnSumit">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
	<script type="text/javascript" src="/js/app/metadata/operationJob/add.js" th:src="@{/js/app/metadata/operationJob/add.js}">
		
	</script>
</body>
</html>
